import Editor from "../editor"

export class InsertTextOperation {
    spacers_: string
    insertIndex_: number
    constructor(spacers: string, insertIndex: number){
        this.spacers_ = spacers
        this.insertIndex_ = insertIndex
    }
    apply(editor: Editor){
        editor.getTextModel()?.insert(this.insertIndex_,this.spacers_)
    }
}